package www.openteam.com.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 产品信息
 * Created by kylin on 2016/9/29.
 */

public class ProductInfo {


    /**
     * status : true
     * info : success
     * data : [{"rownumber":"2","type":"1006","id":6,"typename":"书本类(NK)","code":"1BNK12-00243","name":"Vodafone K4511 德国快速指南","CustCode":"HWZD0001","unit":"本","specs":"110×110×1","length":"110.000000","width":"110.000000","height":"1.000000","SpecsUnit":"MM","CoverPage":4,"contentpage":12,"maxstock":"0","minstock":"0","PaperInf":"200G金海双粉","technicsinf":""},{"rownumber":"3","type":"1006","id":6,"typename":"书本类(NK)","code":"1BNK12-00244","name":"Vodafone K4511德国安全手册","CustCode":"HWZD0001","unit":"本","specs":"110×110×1","length":"110.000000","width":"110.000000","height":"1.000000","SpecsUnit":"MM","CoverPage":4,"contentpage":12,"maxstock":"0","minstock":"0","PaperInf":"200G金海双粉","technicsinf":""},{"rownumber":"4","type":"1006","id":6,"typename":"书本类(NK)","code":"1BNK12-01584","name":"Vodafone","CustCode":"ZXKX0001","unit":"本","specs":"110×110×1","length":"110.000000","width":"110.000000","height":"1.000000","SpecsUnit":"MM","CoverPage":0,"contentpage":0,"maxstock":"0","minstock":"0","PaperInf":"200G双粉","technicsinf":""},{"rownumber":"5","type":"1006","id":6,"typename":"书本类(NK)","code":"1BNK13-03933","name":"31010PLP","CustCode":"HWDG0001","unit":"本","specs":"110×110×0","length":"110.000000","width":"110.000000","height":".000000","SpecsUnit":"","CoverPage":0,"contentpage":0,"maxstock":"0","minstock":"0","PaperInf":"","technicsinf":""},{"rownumber":"6","type":"1006","id":6,"typename":"书本类(NK)","code":"1BNK13-03934","name":"31223214","CustCode":"HWDG0001","unit":"本","specs":"110×110×0","length":"110.000000","width":"110.000000","height":".000000","SpecsUnit":"MM","CoverPage":0,"contentpage":0,"maxstock":"0","minstock":"0","PaperInf":"","technicsinf":""},{"rownumber":"7","type":"1006","id":6,"typename":"书本类(NK)","code":"1BNK13-03935","name":"31223215","CustCode":"HWDG0001","unit":"本","specs":"110×110×0","length":"110.000000","width":"110.000000","height":".000000","SpecsUnit":"MM","CoverPage":0,"contentpage":0,"maxstock":"0","minstock":"0","PaperInf":"","technicsinf":""},{"rownumber":"8","type":"1006","id":6,"typename":"书本类(NK)","code":"1BNK14-02817","name":"R209-Z 快速指南 (新西兰VDF) 079584506531","CustCode":"ZXKX0001","unit":"本","specs":"××","length":".000000","width":".000000","height":".000000","SpecsUnit":"","CoverPage":0,"contentpage":0,"maxstock":"0","minstock":"0","PaperInf":"","technicsinf":""},{"rownumber":"9","type":"1006","id":6,"typename":"书本类(NK)","code":"1BNK15-00308","name":"Vodafone B593s-22 31010TWD 快速指南","CustCode":"HWDG0001","unit":"本","specs":"0×0×0","length":".000000","width":".000000","height":".000000","SpecsUnit":"","CoverPage":0,"contentpage":0,"maxstock":"0","minstock":"0","PaperInf":"","technicsinf":""},{"rownumber":"10","type":"1006","id":6,"typename":"书本类(NK)","code":"1BNK16-00917","name":"Trek Flare R manual 说明书 V1","CustCode":"MST00002","unit":"本","specs":"0×0×0","length":".000000","width":".000000","height":".000000","SpecsUnit":"","CoverPage":0,"contentpage":0,"maxstock":"0","minstock":"0","PaperInf":"","technicsinf":""},{"rownumber":"11","type":"1010","id":139,"typename":"贴纸(SK)","code":"1BSK16-02267","name":"Trek Bottom panel label and Cover label 532623 (72000521)","CustCode":"ADKJ0001","unit":"个","specs":"0×0×0","length":".000000","width":".000000","height":".000000","SpecsUnit":"","CoverPage":0,"contentpage":0,"maxstock":"0","minstock":"0","PaperInf":"","technicsinf":""}]
     */

    private List<DataEntity> data;

    public void setData(List<DataEntity> data) {
        this.data = data;
    }


    public List<DataEntity> getData() {
        return data;
    }

    public static class DataEntity implements Parcelable {
        /**
         * rownumber : 2
         * type : 1006
         * id : 6
         * typename : 书本类(NK)
         * code : 1BNK12-00243
         * name : Vodafone K4511 德国快速指南
         * CustCode : HWZD0001
         * unit : 本
         * specs : 110×110×1
         * length : 110.000000
         * width : 110.000000
         * height : 1.000000
         * SpecsUnit : MM
         * CoverPage : 4
         * contentpage : 12
         * maxstock : 0
         * minstock : 0
         * PaperInf : 200G金海双粉
         * technicsinf :
         */

        private String rownumber;
        private String type;
        private int id;
        private String typename;
        private String code;
        private String name;
        private String CustCode;
        private String unit;
        private String specs;
        private String length;
        private String width;
        private String height;
        private String SpecsUnit;
        private int CoverPage;
        private int contentpage;
        private String maxstock;
        private String minstock;
        private String PaperInf;
        private String technicsinf;

        public void setRownumber(String rownumber) {
            this.rownumber = rownumber;
        }

        public void setType(String type) {
            this.type = type;
        }

        public void setId(int id) {
            this.id = id;
        }

        public void setTypename(String typename) {
            this.typename = typename;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public void setName(String name) {
            this.name = name;
        }

        public void setCustCode(String CustCode) {
            this.CustCode = CustCode;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public void setSpecs(String specs) {
            this.specs = specs;
        }

        public void setLength(String length) {
            this.length = length;
        }

        public void setWidth(String width) {
            this.width = width;
        }

        public void setHeight(String height) {
            this.height = height;
        }

        public void setSpecsUnit(String SpecsUnit) {
            this.SpecsUnit = SpecsUnit;
        }

        public void setCoverPage(int CoverPage) {
            this.CoverPage = CoverPage;
        }

        public void setContentpage(int contentpage) {
            this.contentpage = contentpage;
        }

        public void setMaxstock(String maxstock) {
            this.maxstock = maxstock;
        }

        public void setMinstock(String minstock) {
            this.minstock = minstock;
        }

        public void setPaperInf(String PaperInf) {
            this.PaperInf = PaperInf;
        }

        public void setTechnicsinf(String technicsinf) {
            this.technicsinf = technicsinf;
        }

        public String getRownumber() {
            return rownumber;
        }

        public String getType() {
            return type;
        }

        public int getId() {
            return id;
        }

        public String getTypename() {
            return typename;
        }

        public String getCode() {
            return code;
        }

        public String getName() {
            return name;
        }

        public String getCustCode() {
            return CustCode;
        }

        public String getUnit() {
            return unit;
        }

        public String getSpecs() {
            return specs;
        }

        public String getLength() {
            return length;
        }

        public String getWidth() {
            return width;
        }

        public String getHeight() {
            return height;
        }

        public String getSpecsUnit() {
            return SpecsUnit;
        }

        public int getCoverPage() {
            return CoverPage;
        }

        public int getContentpage() {
            return contentpage;
        }

        public String getMaxstock() {
            return maxstock;
        }

        public String getMinstock() {
            return minstock;
        }

        public String getPaperInf() {
            return PaperInf;
        }

        public String getTechnicsinf() {
            return technicsinf;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {

            dest.writeString(rownumber);
            dest.writeInt(contentpage);
            dest.writeInt(CoverPage);
            dest.writeInt(id);
            dest.writeString(code);
            dest.writeString(name);
            dest.writeString(type);
            dest.writeString(technicsinf);
            dest.writeString(PaperInf);
            dest.writeString(minstock);
            dest.writeString(maxstock);
            dest.writeString(SpecsUnit);
            dest.writeString(height);
            dest.writeString(width);
            dest.writeString(length);
            dest.writeString(specs);
            dest.writeString(CustCode);
            dest.writeString(unit);
            dest.writeString(typename);

        }


        public DataEntity(Parcel in) {
            rownumber = in.readString();
            type = in.readString();
            id = in.readInt();
            typename = in.readString();
            code = in.readString();
            name = in.readString();
            CustCode = in.readString();
            unit = in.readString();
            specs = in.readString();
            length = in.readString();
            width = in.readString();
            height = in.readString();
            SpecsUnit = in.readString();
            CoverPage = in.readInt();
            contentpage = in.readInt();
            maxstock = in.readString();
            minstock = in.readString();
            PaperInf = in.readString();
            technicsinf = in.readString();
        }

        public static final Creator<DataEntity> CREATOR = new Creator<DataEntity>() {
            @Override
            public DataEntity createFromParcel(Parcel in) {
                return new DataEntity(in);
            }

            @Override
            public DataEntity[] newArray(int size) {
                return new DataEntity[size];
            }
        };
    }
}
